﻿using System;
using System.Collections.Generic;

namespace PPI.Entities.Distribution
{
    public class ETransformer
    {
        public Int32 Id { get; set; }
        public Int32 ServerId { get; set; }
        public Int32 PoleServerId { get; set; }
        public double Latitude { get; set; }
        public double Longitude { get; set; }
        public string SerialNumber { get; set; }
        public string Comments { get; set; }
        public DateTime CreatedDate { get; set; }
        public bool UploadedImage { get; set; }

        public EDistributionLookUp TransformerType { get; set; }
        public EDistributionLookUp Type { get; set; }
        public EDistributionLookUp Class { get; set; }
        public EDistributionLookUp Phase { get; set; }
        public EDistributionLookUp PCBType { get; set; }
        public EDistributionLookUp ArrestorKv { get; set; }
        public EDistributionLookUp CutOutKv { get; set; }
        public EDistributionLookUp Can { get; set; }
        public List<EDistributionLookUp> Notes { get; set; }
        public string UtilityNumber { get; set; }
        public string TransformerNumber { get; set; }
        public string Manufacturer { get; set; }
        public string Primary { get; set; }
        public string Secondary { get; set; }
        public string PPM { get; set; }
        public bool Arrestor { get; set; }
        public bool DualRated { get; set; }
        public bool Pre1978 { get; set; }
        public bool CutOut { get; set; }

        public EDistributionLookUp DeterminedBy { get; set; }
        public string TestNumber { get; set; }
        public string Impeddance { get; set; }
        public string Taps { get; set; }
        public string Polarity { get; set; }
        public DateTime ManufDate { get; set; }
        public bool Sticker { get; set; }

        public List<EDistributionPoleImage> Images { get; set; }

        public ETransformer()
        {
            Id = Int32.MinValue;
            ServerId = Int32.MinValue;
            PoleServerId = Int32.MinValue;
            SerialNumber = string.Empty;
            Comments = string.Empty;
            UploadedImage = false;
            CreatedDate = DateTime.MinValue;
            ManufDate = DateTime.MinValue;
            Sticker = false;

            UtilityNumber = string.Empty;
            Manufacturer = string.Empty;
            Primary = string.Empty;
            Secondary = string.Empty;
            PPM = string.Empty;
            TransformerNumber = string.Empty;
            TestNumber = string.Empty;
            Impeddance = string.Empty;
            Taps = string.Empty;
            Polarity = string.Empty;


            TransformerType = new EDistributionLookUp();
            Type = new EDistributionLookUp();
            Class = new EDistributionLookUp();
            Phase= new EDistributionLookUp();
            PCBType = new EDistributionLookUp();
            CutOutKv = new EDistributionLookUp();
            ArrestorKv = new EDistributionLookUp();
            Images = new List<EDistributionPoleImage>();
            Can = new EDistributionLookUp();
            DeterminedBy = new EDistributionLookUp();
        }
    }
}
